<Project Sdk="Microsoft.NET.Sdk" TreatAsLocalProperty="EnableAggressiveTrimming;PublishTrimmed">
  <PropertyGroup>
    <TestRuntime>true</TestRuntime>
    <DeltaScript>deltascript.json</DeltaScript>
    <IsTestProject>false</IsTestProject>
    <IsTestSupportProject>true</IsTestSupportProject>
    <!-- to call AsssemblyExtensions.ApplyUpdate we need Optimize=false, EmitDebugInformation=true in all configurations -->
    <Optimize>false</Optimize>
    <EmitDebugInformation>true</EmitDebugInformation>
    <!-- hot reload is not compatible with trimming -->
    <EnableAggressiveTrimming>false</EnableAggressiveTrimming>
    <PublishTrimmed>false</PublishTrimmed>
    <EnableDefaultCompileItems>false</EnableDefaultCompileItems>
    <EmbedAllSources>true</EmbedAllSources>

    <!-- FIXME: issue -->
    <DisableSourceLink>true</DisableSourceLink>
  </PropertyGroup>

  <ItemGroup>
    <Compile Include="MethodBody2.cs" />
  </ItemGroup>

  <ItemGroup>
    <!-- This package from https://github.com/dotnet/hotreload-utils provides
         targets that read the json delta script and generates deltas based on the baseline assembly and the modified sources.

         Projects must define the DeltaScript property that specifies the (relative) path to the json script.
         Deltas will be emitted next to the output assembly.  Deltas will be copied when the current
         project is referenced from other other projects.
    -->
    <PackageReference Include="Microsoft.DotNet.HotReload.Utils.Generator.BuildTool" Version="$(MicrosoftDotNetHotReloadUtilsGeneratorBuildToolVersion)" />
  </ItemGroup>
</Project>
